home *** CD-ROM | disk | FTP | other *** search
Wrap
ggggllllSSSScccciiiissssssssoooorrrr((((3333GGGG)))) OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee ggggllllSSSScccciiiissssssssoooorrrr((((3333GGGG)))) NNNNAAAAMMMMEEEE ggggllllSSSScccciiiissssssssoooorrrr - define the scissor box CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN void ggggllllSSSScccciiiissssssssoooorrrr( GLint _x, GLint _y, GLsizei _w_i_d_t_h, GLsizei _h_e_i_g_h_t ) PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS _x, _y Specify the lower left corner of the scissor box. Initially (0, 0). _w_i_d_t_h, _h_e_i_g_h_t Specify the width and height of the scissor box. When a GL context is first attached to a window, _w_i_d_t_h and _h_e_i_g_h_t are set to the dimensions of that window. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN ggggllllSSSScccciiiissssssssoooorrrr defines a rectangle, called the scissor box, in window coordinates. The first two arguments, _x and _y, specify the lower left corner of the box. _w_i_d_t_h and _h_e_i_g_h_t specify the width and height of the box. To enable and disable the scissor test, call ggggllllEEEEnnnnaaaabbbblllleeee and ggggllllDDDDiiiissssaaaabbbblllleeee with argument GGGGLLLL____SSSSCCCCIIIISSSSSSSSOOOORRRR____TTTTEEEESSSSTTTT. The test is initially disabled. While the test is enabled, only pixels that lie within the scissor box can be modified by drawing commands. Window coordinates have integer values at the shared corners of frame buffer pixels. glScissor(0,0,1,1) aaaalllllllloooowwwwssss mmmmooooddddiiiiffffiiiiccccaaaattttiiiioooonnnn ooooffff oooonnnnllllyyyy tttthhhheeee lllloooowwwweeeerrrr lllleeeefffftttt ppppiiiixxxxeeeellll iiiinnnn tttthhhheeee wwwwiiiinnnnddddoooowwww,,,, aaaannnndddd ggggllllSSSScccciiiissssssssoooorrrr((((0000,,,,0000,,,,0000,,,,0000)))) doesn't allow modification of any pixels in the window. When the scissor test is disabled, it is as though the scissor box includes the entire window. EEEERRRRRRRROOOORRRRSSSS GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____VVVVAAAALLLLUUUUEEEE is generated if either _w_i_d_t_h or _h_e_i_g_h_t is negative. GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____OOOOPPPPEEEERRRRAAAATTTTIIIIOOOONNNN is generated if ggggllllSSSScccciiiissssssssoooorrrr is executed between the execution of ggggllllBBBBeeeeggggiiiinnnn and the corresponding execution of ggggllllEEEEnnnndddd. PPPPaaaaggggeeee 1111 ggggllllSSSScccciiiissssssssoooorrrr((((3333GGGG)))) OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee ggggllllSSSScccciiiissssssssoooorrrr((((3333GGGG)))) AAAASSSSSSSSOOOOCCCCIIIIAAAATTTTEEEEDDDD GGGGEEEETTTTSSSS ggggllllGGGGeeeetttt with argument GGGGLLLL____SSSSCCCCIIIISSSSSSSSOOOORRRR____BBBBOOOOXXXX ggggllllIIIIssssEEEEnnnnaaaabbbblllleeeedddd with argument GGGGLLLL____SSSSCCCCIIIISSSSSSSSOOOORRRR____TTTTEEEESSSSTTTT SSSSEEEEEEEE AAAALLLLSSSSOOOO ggggllllEEEEnnnnaaaabbbblllleeee, ggggllllVVVViiiieeeewwwwppppoooorrrrtttt PPPPaaaaggggeeee 2222